#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int a = 8, count = 0;
	for (a = 8; a < 100; a++)
	{
		if (a % 10 == 9)
		{
			count++;
		}
		if (a / 10 == 9)
		{
			count++;
		}
	}
	printf("%d", count);



	return 0;
}